import request from '@/utils/request'
import baseURL from '@/utils/baseURLConfig'

// mock-分页查询
export function queryPage(data) {
  return request({
    baseURL: baseURL.AUTO,
    url: '/user/queryPage',
    method: 'post',
    data
  })
}

// 制造商与品牌-分页查询
export function makerGetMakerAndBrandList(data) {
  return request({
    baseURL: baseURL.AUTO,
    url: '/maker/getMakerAndBrandList',
    method: 'post',
    data
  })
}

// 制造商与品牌-不分页查询
export function brandInfoGetBrandsList(data) {
  return request({
    baseURL: baseURL.AUTO,
    url: '/brandInfo/getBrandsList',
    method: 'post',
    data
  })
}

// 制造商与品牌-品牌编辑
export function brandInfoBrandInfoUpdate(data) {
  return request({
    baseURL: baseURL.AUTO,
    url: '/brandInfo/brandInfoUpdate',
    method: 'post',
    data
  })
}

// 制造商与品牌-新增制造商
export function makerAddMaker(data) {
  return request({
    baseURL: baseURL.AUTO,
    url: '/maker/addMaker',
    method: 'post',
    data
  })
}

// 制造商与品牌-编辑制造商
export function makerUpdateById(data) {
  return request({
    baseURL: baseURL.AUTO,
    url: '/maker/updateById',
    method: 'post',
    data
  })
}

// 制造商与品牌-制造商 禁用
export function makerForbiddenByIds(data) {
  return request({
    baseURL: baseURL.AUTO,
    url: '/maker/forbiddenByIds',
    method: 'post',
    data
  })
}

// 制造商与品牌-制造商 启用
export function makerEnableByIds(data) {
  return request({
    baseURL: baseURL.AUTO,
    url: '/maker/enableByIds',
    method: 'post',
    data
  })
}

// 制造商与品牌-品牌禁用
export function brandForbiddenByIds(data) {
  return request({
    baseURL: baseURL.AUTO,
    url: '/brandInfo/forbiddenByIds',
    method: 'post',
    data
  })
}

// 制造商与品牌-删除
export function brandDeleteByIds(data) {
  return request({
    baseURL: baseURL.AUTO,
    url: '/brandInfo/deleteByIds',
    method: 'post',
    data
  })
}

// 制造商与品牌-品牌启用
export function brandEnableByIds(data) {
  return request({
    baseURL: baseURL.AUTO,
    url: '/brandInfo/enableByIds',
    method: 'post',
    data
  })
}

// 车型车系-分页查询
export function getSeriesAndModelList(data) {
  return request({
    baseURL: baseURL.AUTO,
    url: '/carSeries/getSeriesAndModelList',
    method: 'post',
    data
  })
}

// 车系车型-车系新增
export function carSeriesAddCarSeries(data) {
  return request({
    baseURL: baseURL.AUTO,
    url: '/carSeries/addCarSeries',
    method: 'post',
    data
  })
}

// 车系车型-车系编辑
export function carSeriesUpdateById(data) {
  return request({
    baseURL: baseURL.AUTO,
    url: '/carSeries/updateById',
    method: 'post',
    data
  })
}

// 车系车型-车型新增
export function modelAddModel(data) {
  return request({
    baseURL: baseURL.AUTO,
    url: '/model/addModel',
    method: 'post',
    data
  })
}

// 车系车型- 车型编辑
export function modelUpdateById(data) {
  return request({
    baseURL: baseURL.AUTO,
    url: '/model/updateById',
    method: 'post',
    data
  })
}

// 车系车型- 车型删除
export function modelDeleteByIds(data) {
  return request({
    baseURL: baseURL.AUTO,
    url: '/model/deleteByIds',
    method: 'post',
    data
  })
}

// 车系车型- 车系禁用
export function carSeriesForbiddenByIds(data) {
  return request({
    baseURL: baseURL.AUTO,
    url: '/carSeries/forbiddenByIds',
    method: 'post',
    data
  })
}

// 车系车型- 车系启用
export function carSeriesEnableByIds(data) {
  return request({
    baseURL: baseURL.AUTO,
    url: '/carSeries/enableByIds',
    method: 'post',
    data
  })
}

// 车系车型- 车型禁用
export function modelForbiddenByIds(data) {
  return request({
    baseURL: baseURL.AUTO,
    url: '/model/forbiddenByIds',
    method: 'post',
    data
  })
}

// 车型车系- 车型启用
export function modelEnableByIds(data) {
  return request({
    baseURL: baseURL.AUTO,
    url: '/model/enableByIds',
    method: 'post',
    data
  })
}

// 车详情-分页查询
export function getVehiclesList(data) {
  return request({
    baseURL: baseURL.AUTO,
    url: '/vehicles/getVehiclesList',
    method: 'post',
    data
  })
}

// 车详情-新增车辆详情
export function vehiclesCreateVehicles(data) {
  return request({
    baseURL: baseURL.AUTO,
    url: '/vehicles/createVehicles',
    method: 'post',
    data
  })
}

// 车详情-车型配置查询
export function modelsGetAllCarModel(data) {
  return request({
    baseURL: baseURL.AUTO,
    url: '/modelConfigure/getAllCarModel',
    method: 'get'
  })
}

// 车详情-禁用
export function vehiclesForbiddenByIds(data) {
  return request({
    baseURL: baseURL.AUTO,
    url: '/vehicles/forbiddenByIds',
    method: 'post',
    data
  })
}

// 车详情-删除
export function vehiclesDeleteByIds(data) {
  return request({
    baseURL: baseURL.AUTO,
    url: '/vehicles/deleteByIds',
    method: 'post',
    data
  })
}

// 车详情-启用
export function vehiclesEnableByIds(data) {
  return request({
    baseURL: baseURL.AUTO,
    url: '/vehicles/enableByIds',
    method: 'post',
    data
  })
}

// 车型配置页-分页查询
export function getConfiguresListPage(data) {
  return request({
    baseURL: baseURL.AUTO,
    url: '/modelConfigure/getConfiguresListPage',
    method: 'post',
    data
  })
}

// 车型配置页-不分页查询
export function getConfiguresList(data) {
  return request({
    baseURL: baseURL.AUTO,
    url: '/modelConfigure/getConfiguresList',
    method: 'post',
    data
  })
}

// 车型配置页-禁用车型
export function modelConfigureForbiddenByIds(data) {
  return request({
    baseURL: baseURL.AUTO,
    url: '/modelConfigure/forbiddenByIds',
    method: 'post',
    data
  })
}

// 车型配置页-启用车型
export function modelConfigureEnableByIds(data) {
  return request({
    baseURL: baseURL.AUTO,
    url: '/modelConfigure/enableByIds',
    method: 'post',
    data
  })
}

// 车型配置页-新增编辑车型配置(支持批量)
export function modelConfigureUpdate(data) {
  return request({
    baseURL: baseURL.AUTO,
    url: '/modelConfigure/configureUpdate',
    method: 'post',
    data
  })
}

// 车型配置页-修改车型配置信息
export function modelConfigureUpdateById(data) {
  return request({
    baseURL: baseURL.AUTO,
    url: '/modelConfigure/updateById',
    method: 'post',
    data
  })
}

// 获取所有车型
export function modelGetModelsList(data) {
  return request({
    baseURL: baseURL.AUTO,
    url: '/model/getModelsList',
    method: 'post',
    data
  })
}

// 车系车型- 车型编辑
export function modelModelUpdate(data) {
  return request({
    baseURL: baseURL.AUTO,
    url: '/model/modelUpdate',
    method: 'post',
    data
  })
}

// 车辆详情页-分页查询
export function getVehiclesListNew(data) {
  return request({
    baseURL: baseURL.AUTO,
    url: '/vehicles/getVehiclesListNew',
    method: 'post',
    data
  })
}

// 获取制造商列表数据（不分页）
export function getMakersList(data) {
  return request({
    baseURL: baseURL.AUTO,
    url: '/maker/getMakersList',
    method: 'post',
    data
  })
}

// 获取品牌列表数据（不分页）
export function getBrandsList(data) {
  return request({
    baseURL: baseURL.AUTO,
    url: '/brandInfo/getBrandsList',
    method: 'post',
    data
  })
}

// 获取车系列表数据（不分页）
export function getCarSeriesList(data) {
  return request({
    baseURL: baseURL.AUTO,
    url: '/carSeries/getCarSeriesList',
    method: 'post',
    data
  })
}

// 获取车系列表数据（不分页）
export function getModelsList(data) {
  return request({
    baseURL: baseURL.AUTO,
    url: '/model/getModelsList',
    method: 'post',
    data
  })
}

// 获取车辆所属地区列表数据（不分页）
export function getVehicleAreaList(data) {
  return request({
    baseURL: baseURL.AUTO,
    url: '/vehiclesArea/getVehicleAreaList',
    method: 'post',
    data
  })
}

// 车辆详情页-车辆批量导入
export function importVehicleExcel(data) {
  return request({
    baseURL: baseURL.AUTO,
    url: '/vehicles/importVehicleExcel',
    method: 'post',
    data
  })
}
